package com.wgchao.identityrightsmanagement.infrastructure.jpa.repository;

import com.wgchao.identityrightsmanagement.infrastructure.jpa.entity.SysResourceFunction;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface SysResourceFunctionRepository extends JpaRepository<SysResourceFunction, Long> {
    SysResourceFunction findFirstByMenuMarkAndFuncMark(String menuMark, String funcMark);
    List<SysResourceFunction> findAllByMenuMark(String menuMark);
    void deleteAllByMenuMark(String menuMark);
    void deleteByFuncMarkAndMenuMark(String funcMark, String menuMark);
}
